from django.urls import path
from rest_framework.routers import DefaultRouter

from . import views

urlpatterns = [
    path('category/', views.CategoryView.as_view()),
    path('content/<article_id>/', views.ArticleContentView.as_view()),
    path('article/collections/<article_id>/', views.CollectArticleView.as_view()),
    path('article/clicks/<article_id>/', views.ArticleAccessView.as_view()),
    path('search/', views.SearchView.as_view()),
    path('suggestion/', views.SuggestionView.as_view()),
]

router = DefaultRouter()
router.register(r'articles', views.ArticleModelViewSet, basename='')
urlpatterns += router.urls
